package spring.cloud.tasks.client.item_task_processor;

import lombok.Getter;
import lombok.Setter;

import java.sql.Timestamp;
import java.util.Date;


public class ProcessorInfo {
    //ip$processorId
    @Setter
    @Getter
    public String ip;
    @Setter
    @Getter
    public String processorId;


    @Setter
    @Getter
    public String taskId;

    @Setter
    @Getter
    public String hostName;
    @Setter
    @Getter
    public int threadNum;
    @Setter
    @Getter
    public Timestamp registerTime;
    @Setter
    @Getter
    public Timestamp heartBeatTime;
    @Setter
    @Getter
    public Timestamp lastFetchDataTime;

    @Setter
    @Getter
    public String mark;
    @Setter
    @Getter
    public String nextRunStartTime;//代表初始化的时间
    @Setter
    @Getter
    public Date nextRunTime;
    @Setter
    @Getter
    public String nextRunEndTime;//代表初始化的时间
    @Setter
    @Getter
    public Date nextRunEndTimeDate;
    @Setter
    @Getter
    public Timestamp centerServerTime;
    @Setter
    @Getter
    public long version;
    @Setter
    @Getter
    public boolean isRegister;
    @Setter
    @Getter
    public String workerId;
    @Setter
    @Getter
    public String needDestroyWhenTaskItemsInvalid;

    public ProcessorInfo() {

    }

}
